<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
	 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-project-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">账号：</label>
				<div class="col-sm-8">
				    <input id="projectId" name="projectId"  th:value="${projectId}" type="hidden">
					<select name="userId"  class="form-control" th:with="type=${users}" >
					   <option th:each="user : ${type}" th:value="${user.userId}" th:text="${user.userName}" th:title="${user.loginName}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">角色：</label>
				<div class="col-sm-8">
				  <select name="roleId"  class="form-control m-b">
				      <option value="5">观察者</option>
				      <option value="6">编辑者</option>
				  </select>
				</div>
			</div>
		</form>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript">
		var prefix = ctx + "system/project"
		$("#form-project-add").validate({
			rules:{
				projectName:{
					required:true,
				}
			}
		});
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/addUserSave", $('#form-project-add').serialize());
	        }
	    }
	</script>
</body>
</html>